package com.booksystem.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * <p>
 *   用户密码更新请求 DTO
 * </p>
 * @author 段伟豪
 */
@Data
@ApiModel(description = "用户密码更新")
public class UserPasswordUpdateDTO {

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
     * 旧密码哈希值
     */
    @NotBlank(message = "旧密码不能为空")
    @ApiModelProperty(value = "旧密码哈希值")
    private String oldPasswordHash;

    /**
     * 新密码哈希值
     */
    @NotBlank(message = "新密码不能为空")
    @ApiModelProperty(value = "新密码哈希值")
    private String newPasswordHash;
}